x86/HVM: fix legacy PIC check in pt_update_irq()
authorJan Beulich <jbeulich@suse.com>
Thu, 2 May 2013 14:48:22 +0000 (16:48 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 2 May 2013 14:48:22 +0000 (16:48 +0200)
commitf6b533308cd8a776bbb947f6084efc63218ad28b
tree917512e121c4841d84b686c5a84822156835367a
parentc2f79c464849e5f796aa9d1d0f26fe356abd1a1a
x86/HVM: fix legacy PIC check in pt_update_irq()

Depending on the IRQ we need to
- not look at the PIC at all is this is the LAPIC timer (in that case
  we're dealing with a vector number rather than an IRQ one),
- not look at the PIC for any non-legacy interrupt,
- look at the correct PIC for the IRQ (which will always be PIC 2 for
  the RTC, and possibly also for HPET).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Tested-by: Roger Pau Monné <roger.pau@citrix.com> (FreeBSD guest)
Reviewed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/hvm/vpt.c